package com.hancai.barrage.mapper;

import com.hancai.barrage.pagehelper.QueryObject;
import com.hancai.barrage.pojo.Barrage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BarrageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Barrage row);

    Barrage selectByPrimaryKey(Long id);

    List<Barrage> selectAll();

    int updateByPrimaryKey(Barrage row);

    void changeStatus(@Param("id") Long id, @Param("status") Integer status);

    Long selectForCount(QueryObject qo);

    List<Barrage> selectForList(QueryObject qo);
}